let maintenanceCacheData = {}

try {
  maintenanceCacheData = uni.getStorageSync('checkedCacheData')
} catch (e) {}

const maintenanceCache = {
  state: {
    maintenanceCache: maintenanceCacheData ? maintenanceCacheData : {},
  },
  mutations: {
    SET_MAINTENANCECACHE: (state, maintenanceCache) => {
      state.maintenanceCache = maintenanceCache
      uni.setStorageSync('maintenanceCacheData', maintenanceCache)
    },
  },
}

export default maintenanceCache
